# -*- coding: utf-8 -*-
# Created by methew at 2018/9/2

f = open('f.txt', 'r')
result = list()
lYear = 1900
yYear = 1901
leapMonthInfo = [0]  # 闰月
lunarFirstDayFor
dxMonth = [0]  # 大小月

for line in open('f.txt'):
    line = f.readline()
    arr = line.split('/')
    ob = {'date': arr[0] if arr[0] != '\n' else '', 'lunar': arr[1] if arr[1] != '\n' else '',
          'week': arr[2] if arr[2] != '\n' else '', 'jq': arr[3] if arr[3] != '\n' else ''}
    result.append(ob)
# print(result)
f.close()
for yearLine in result:
    dates = yearLine.split(':')
    for date in dates:
        if lYear != int(date['date'].split('.')[0]):
            #
        yYear = int(date['date'].split('.')[0])
        lYear = int(date['lunar'].split('.')[0])
        lIsLeap = int(date['lunar'].split('.')[1])
        lMonth = int(date['lunar'].split('.')[2])

print(leapMonthInfo)
